package org.dromara.system.cloud;

public class CloudConsts {


    public static final String TOKEN_GET = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";

    public static final String ACCESS_TOKEN_GET = "https://api.weixin.qq.com/cgi-bin/stable_token";



    public static final String TOKEN_KEY = "Mini:Token";

    public static final Integer TOKEN_MIN = 110;


    public static final String DB_ADD = "https://api.weixin.qq.com/tcb/databaseadd?access_token=";

    public static final String DB_REMOVE = "https://api.weixin.qq.com/tcb/databasedelete?access_token=";

    public static final String DB_UPDATE = "https://api.weixin.qq.com/tcb/databaseupdate?access_token=";


    public static final String DB_ADD_SQL = "db.collection(\"%s\").add({data:[%s]})";

    public static final String DB_REMOVE_KEY_SQL =
        "db.collection(\"%s\").doc(\"%s\").remove()";

    public static final String DB_REMOVE_SQL =
        "db.collection(\"%s\").where(%s).remove()";

    public static final String DB_UPDATE_KEY_SQL =
        "db.collection(\"%s\").doc(\"%s\").update({data:%s})";

    public static final String DB_UPDATE_SQL =
        "db.collection(\"%s\").where(%s).update({data:%s})";
}
